package com.wardrobe.soa.api.trainmanage;

import com.wardrobe.dao.train_manage.TrainManageDao;
import com.wardrobe.domain.train_manage.TrainManageShowBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2018/11/15.
 */
@Service
public class TrainManageService {
    @Autowired
    private TrainManageDao trainManageDao;

    public List<TrainManageShowBean> getTrainManageList(){
       return trainManageDao.selectTrainManageList();
    }

    public TrainManageShowBean getTrainManageById(int id){
        return trainManageDao.selectTrainManageById(id);
    }
}
